package kr.hkit.framework.inputPanel;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.GridLayout;

public class TestMain extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private inputTxtPanel panel;
	private inputCmbPanel panel_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TestMain frame = new TestMain();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TestMain() {
		initialize();
	}
	private void initialize() {
		setTitle("Test Drive");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 299, 178);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new GridLayout(0, 1, 0, 0));
		
		panel = new inputTxtPanel("제품명");
		contentPane.add(panel);
		panel.setLayout(new GridLayout(1, 0, 0, 0));
		
		panel_1 = new inputCmbPanel("사원등급");
		contentPane.add(panel_1);
		//panel_1.setComboItems("AAA","BBB","CCC");
		String[] labels = {"AAA","BBB","CCC"};
		panel_1.setComboItems(labels);
		
	}

}
